//index.js
//获取应用实例
//var API_URL="https://api.douban.com/v2/movie/top250";
var app = getApp();
var datas={
    title: '加载中。。。',
    userInfo: {},
    array: ['广州', '深圳', '上海', '北京','珠海','厦门','汕头'],
    index:2,
    viewHeadImg:{
      mode: 'aspectFit',
      src: "../../images/5.jpg"
    },
    proList:[
      {
        "id":12123,
        "src":"../../images/4.jpg",
        "mode": 'aspectFit',
        "imgSubImg":"../../images/small-1.jpg",
        "imgTitle":"小标题小标题-1",
        "title":"南锣胡同里的洋风情",
        "label":["西餐","约会","橄榄油煎蘑菇"],
        "adress":"南锣嘉荫嘉荫/雷鸣楼楼/十八大街",
        "support":138
      },
      {
        "id":12128,
        "src":"../../images/3.jpg",
        "mode": 'aspectFit',
        "imgSubImg":"../../images/small-2.jpg",
        "imgTitle":"小标题小标题-2",
        "title":"南锣胡同里的洋风情2",
        "label":["西餐","橄榄油煎蘑菇","约会"],
        "adress":"南锣嘉荫嘉荫/雷鸣楼楼/十八大街2",
        "support":1998
      },
      {
        "id":12129,
        "src":"../../images/2.jpg",
        "mode": 'aspectFit',
        "imgSubImg":"../../images/small-3.jpg",
        "imgTitle":"小标题小标题-3",
        "title":"南锣胡同里的洋风情3",
        "label":["西餐","橄榄油煎蘑菇","约会3"],
        "adress":"南锣嘉荫嘉荫/雷鸣楼楼/十八大街3",
        "support":98
      }
    ]
    
   };
Page({
  data:datas,
  onShareAppMessage: function () {
    return {
      title: '自定义分享标题',
      desc: '自定义分享描述',
      path: '/page/user?id=123'
    }
  },
  onLoad:function(){
    var that=this;
    // wx.showToast({
    //   title:'加载中。。。',
    //   icon:'loading',
    //   duration:10000
    // });
  },
  bindPickerChange: function(e) {
    this.setData({
      index: e.detail.value
    })
  },
  upper: function(e) {
    console.log(e);
    wx.showToast({
       title:'下拉中。。。',
       icon:'loading',
       duration:3000
    });
  },
  lower: function(e) {
    wx.showToast({
       title:'上拉中。。。',
       icon:'loading',
       duration:3000
    });
  }
})